package com.example.plat.enity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("活动实体")
@TableName("activity")
public class Activity {
    @ApiModelProperty("活动ID")
    @TableId(type = IdType.AUTO)
    Long id;

    @ApiModelProperty("标题")
    @TableField("title")
    String title;

    @ApiModelProperty("图片")
    @TableField("photo")
    String photo;

    @ApiModelProperty("发布者")
    @TableField("publisher")
    String publisher;

    @ApiModelProperty("内容")
    @TableField("content")
    String content;

    @ApiModelProperty("时间")
    @TableField("time_")
    String time;

    @ApiModelProperty("地点")
    @TableField("place")
    String place;

    @ApiModelProperty("审核状态")
    @TableField("is_pass")
    Integer isPass;

    @ApiModelProperty("分类")
    @TableField("category")
    String category;

    @ApiModelProperty("最大人数")
    @TableField("numOfPerson")
    Integer numOfPerson;

    @ApiModelProperty("当前人数")
    @TableField("participation")
    Integer participation;

    @ApiModelProperty("浏览量")
    @TableField("view_")
    Integer view;

    @ApiModelProperty("评论数")
    @TableField("comment_")
    Integer comment;

    @ApiModelProperty("热度")
    @TableField("hot")
    Integer hot;

    @ApiModelProperty("是否剩余")
    @TableField("is_surplus")
    Boolean isSurplus;

    @ApiModelProperty("地点ID")
    @TableField("place_id")
    Long placeId;
}
